package com.ruoyi.web.config;

import com.ruoyi.web.service.SysModFactory;
import com.ruoyi.web.service.custom.SysModModDataService;
import com.ruoyi.web.service.custom.SysUserModDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;

import javax.annotation.PostConstruct;

@Configuration
public class ModDataServiceConfig {

    @Autowired
    private SysModModDataService sysModModDataService;

    @Autowired
    private SysUserModDataService sysUserModDataService;

    @PostConstruct
    public void init() {
        SysModFactory.register("1", sysModModDataService);
        SysModFactory.register("8", sysUserModDataService);
    }

}
